﻿<local:BaseLab x:Class="Rxx.Labs.Reactive.UI.CommandLab"
							 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
							 xmlns:local="clr-namespace:Rxx.Labs"
							 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
							 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
							 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
							 mc:Ignorable="d" 
							 d:DesignHeight="300" d:DesignWidth="300"
							 DataContext="{Binding RelativeSource={RelativeSource Self}}">

	<StackPanel>

		<StackPanel Name="OptionsPanel">

			<CheckBox HorizontalAlignment="Center" Margin="10"
								Content="Commands enabled" IsChecked="{Binding AreCommandsEnabled, Mode=TwoWay}" />

			<Rectangle Fill="Blue" Height="2" Margin="10,0,10,5" />

		</StackPanel>

		<Button HorizontalAlignment="Center" Margin="5,10,5,5" Padding="3,2"
						Content="Toggle Options" Command="{Binding ToggleOptionsCommand}" />

		<Button HorizontalAlignment="Center" Margin="5" Padding="3,2"
						Content="Say Hello" Command="{Binding SayHelloCommand}" CommandParameter="Hello" />

	</StackPanel>

</local:BaseLab>